From: Matthias Clasen Date: Tue, 7 Jan 2020 01:29:42 +0000 (-0500) Subject: dragsource: Rename ::drag-failed to ::drag-cancel X-Git-Tag: archive/raspbian/4.4.1+ds1-2+rpi1~1^2~321^2^2~354^2~60 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=865fc9c9253494e484e7fca9c5beeffa1a02cc04;p=gtk4.git dragsource: Rename ::drag-failed to ::drag-cancel This matches the names of the GdkDrag signals. --- diff --git a/gtk/gtkdragsource.c b/gtk/gtkdragsource.c index 0d7620e3be..e4b812846e 100644 --- a/gtk/gtkdragsource.c +++ b/gtk/gtkdragsource.c @@ -115,7 +115,7 @@ enum { PREPARE, DRAG_BEGIN, DRAG_END, - DRAG_FAILED, + DRAG_CANCEL, NUM_SIGNALS }; @@ -368,20 +368,20 @@ gtk_drag_source_class_init (GtkDragSourceClass *class) G_TYPE_BOOLEAN); /** - * GtkDragSource::drag-failed: + * GtkDragSource::drag-cancel: * @source: the #GtkDragSource * @drag: the #GtkDrag object * @reason: information on why the drag failed * - * The ::drag-failed signal is emitted on the drag source when a drag has + * The ::drag-cancel signal is emitted on the drag source when a drag has * failed. The signal handler may handle a failed drag operation based on * the type of error. It should return %TRUE if the failure has been handled - * and the default "drag operation failed" should not be shown. + * and the default "drag operation failed" animation should not be shown. * * Returns: %TRUE if the failed drag operation has been already handled */ - signals[DRAG_FAILED] = - g_signal_new (I_("drag-failed"), + signals[DRAG_CANCEL] = + g_signal_new (I_("drag-cancel"), G_TYPE_FROM_CLASS (class), G_SIGNAL_RUN_LAST, 0, @@ -434,7 +434,7 @@ gtk_drag_source_cancel_cb (GdkDrag *drag, { gboolean success = FALSE; - g_signal_emit (source, signals[DRAG_FAILED], 0, source->drag, reason, &success); + g_signal_emit (source, signals[DRAG_CANCEL], 0, source->drag, reason, &success); drag_end (source, FALSE); } @@ -692,7 +692,7 @@ gtk_drag_source_drag_cancel (GtkDragSource *source) { gboolean success = FALSE; - g_signal_emit (source, signals[DRAG_FAILED], 0, source->drag, GDK_DRAG_CANCEL_ERROR, &success); + g_signal_emit (source, signals[DRAG_CANCEL], 0, source->drag, GDK_DRAG_CANCEL_ERROR, &success); gdk_drag_drop_done (source->drag, success); }